package com.zheng.wc.dao.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.zheng.common.base.BaseEntity;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author likun
 * @since 2018-04-19
 */
@TableName("wc_plan")
public class WcPlan extends BaseEntity {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 计划标题
     */
	@TableField("plan_name")
	private String planName;
    /**
     * 计划详情
     */
	@TableField("plan_detail")
	private String planDetail;
	@TableField("dept_id")
	private Integer deptId;
    /**
     * 附件
     */
	private String attachment;
    /**
     * 计划类型 0 部门 1 公司
     */
	@TableField("plan_type")
	private Integer planType;
    /**
     * 阅读次数
     */
	@TableField("read_count")
	private Integer readCount;
	@TableField("plan_year")
	private Integer planYear;
	@TableField("plan_month")
	private Integer planMonth;
    /**
     * 时间类型 0 年度计划 1月计划
     */
	@TableField("time_type")
	private Integer timeType;
    /**
     * 状态 0 正常 1已删除
     */
	private Integer status;
    /**
     * 备注
     */
	private String remark;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPlanName() {
		return planName;
	}

	public void setPlanName(String planName) {
		this.planName = planName;
	}

	public String getPlanDetail() {
		return planDetail;
	}

	public void setPlanDetail(String planDetail) {
		this.planDetail = planDetail;
	}

	public Integer getDeptId() {
		return deptId;
	}

	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}

	public String getAttachment() {
		return attachment;
	}

	public void setAttachment(String attachment) {
		this.attachment = attachment;
	}

	public Integer getPlanType() {
		return planType;
	}

	public void setPlanType(Integer planType) {
		this.planType = planType;
	}

	public Integer getReadCount() {
		return readCount;
	}

	public void setReadCount(Integer readCount) {
		this.readCount = readCount;
	}

	public Integer getPlanYear() {
		return planYear;
	}

	public void setPlanYear(Integer planYear) {
		this.planYear = planYear;
	}

	public Integer getPlanMonth() {
		return planMonth;
	}

	public void setPlanMonth(Integer planMonth) {
		this.planMonth = planMonth;
	}

	public Integer getTimeType() {
		return timeType;
	}

	public void setTimeType(Integer timeType) {
		this.timeType = timeType;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	@Override
	protected Serializable pkVal() {
		return id;
	}
	@Override
	public String toString() {
		return "WcPlan{" +
			"id=" + id +
			", planName=" + planName +
			", planDetail=" + planDetail +
			", deptId=" + deptId +
			", attachment=" + attachment +
			", planType=" + planType +
			", readCount=" + readCount +
			", planYear=" + planYear +
			", planMonth=" + planMonth +
			", timeType=" + timeType +
			", status=" + status +
			", remark=" + remark +
			"}";
	}
}
